(function () {
    const time = Date.now()
    while (Date.now() - time < 1000) {
        console.log('defer')
    }
})()